package com.huawei.hwCloudJs.core;

import android.util.Log;
import com.google.gson.JsonSyntaxException;
import o.atc;

public class b {
    public <T> T a(String str, Class<T> cls) {
        T t = null;
        if (!(str == null || cls == null)) {
            try {
                t = new atc().ˊ().ˏ(str, cls);
            } catch (JsonSyntaxException e) {
                Log.e("JsArguments", "JsonSyntaxException");
            }
        }
        return t;
    }

    public <T> String a(T t) {
        return new atc().ॱ(new a()).ˊ().ॱ(t);
    }
}
